package com.ylw.erweima;

import java.awt.image.BufferedImage;
import java.io.*;

/**
 * 生成二维码
 * Created by yangliwei on 2017/8/21.
 */
public class Demo1 {
    public static void main(String[] args) throws Exception {
        String content = "https://www.baidu.com";
        Integer width = 300;
        Integer height = 300;
        File file = new File("F:\\ideaPoeject\\functionUtil\\src\\main\\tempfile\\erweima1.png");
        OutputStream outputStream = new FileOutputStream(file);
//        生成一个不带log的二维码
        QRCodeU.writeToStream(content, outputStream, width, height);

    }
}
